import request from '@/utils/request'

// 查询股权架构列表
export function listHhqyEquityStructure(query) {
  return request({
    url: '/structure/hhqyEquityStructure/list',
    method: 'get',
    params: query
  })
}

// 查询股权架构详细
export function getHhqyEquityStructure(id) {
  return request({
    url: '/structure/hhqyEquityStructure/' + id,
    method: 'get'
  })
}

// 保存股权架构
export function saveHhqyEquityStructure(data) {
  return request({
    url: '/structure/hhqyEquityStructure/save',
    method: 'post',
    data: data
  })
}

// 删除股权架构
export function delHhqyEquityStructure(id) {
  return request({
    url: '/structure/hhqyEquityStructure/' + id,
    method: 'delete'
  })
}

// 导出股权架构
export function exportHhqyEquityStructure(query) {
  return request({
    url: '/structure/hhqyEquityStructure/export',
    method: 'get',
    params: query
  })
}

// 返回股权架构图数据
export function structureChartData(hhqyId) {
  return request({
    url: '/structure/hhqyEquityStructure/structureChartData/' + hhqyId,
    method: 'get'
  })
}

// 根据合伙企业ID查询
export function findByHhqyId(query) {
  return request({
    url: '/structure/hhqyEquityStructure/findByHhqyId/' + query.hhqyId,
    method: 'get',
    params: query
  })
}
